package com.itzhoun.book;

/**
 * @author zhounan
 * @Title: LanguageBook
 * @Description: 小说
 * @date 16/5/2023上午 12:10
 */
public class LanguageBook implements Strategy{

    /**
     * LanguageBook每本有2元的折扣
     * @param price
     * @param total
     * @return
     */
    @Override
    public double clac(double price, int total) {
        return (price -2) * total;
    }
}
